From 25e83bc1d9ec2d470a684710ad9da119bf6a4209 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Sun, 31 May 2015 21:21:57 +0200 Subject: Fixed crafting recipe matching. Fixes #2096. --- src/CraftingRecipes.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/CraftingRecipes.cpp b/src/CraftingRecipes.cpp index 755b152b0..a95ac5f84 100644 --- a/src/CraftingRecipes.cpp +++ b/src/CraftingRecipes.cpp @@ -771,9 +771,12 @@ cCraftingRecipes::cRecipe * cCraftingRecipes::MatchRecipe(const cItem * a_Crafti continue; } Recipe->m_Ingredients.push_back(*itrS); + Recipe->m_Ingredients.back().x += a_OffsetX; + Recipe->m_Ingredients.back().y += a_OffsetY; } Recipe->m_Ingredients.insert(Recipe->m_Ingredients.end(), MatchedSlots.begin(), MatchedSlots.end()); + // Handle the fireworks-related effects: // We use Recipe instead of a_Recipe because we want the wildcard ingredients' slot numbers as well, which was just added previously HandleFireworks(a_CraftingGrid, Recipe.get(), a_GridStride, a_OffsetX, a_OffsetY); -- cgit v1.2.3